require 'rubygems'
require 'sinatra'
get '/' do
  erb :index
end

__END__
@@ layout
<html>
  <head><title>Git@OSC项目演示平台</title></head>
  <body>
    <%= yield %>
  </body>
</html>

@@ index
<h1>Sinatra Demo - Git@OSC项目演示平台</h1>
<p>项目地址：<a href='http://git.oschina.net/demosec/sinatra/'>http://git.oschina.net/demosec/sinatra/</a></p>
<p>搭建教程：<a href='http://git.oschina.net/demosec/sinatra/README.rdoc'>http://git.oschina.net/demosec/sinatra/blob/master/README.rdoc</a></p>
<iframe src="http://git.oschina.net/paas_demo.html" frameborder="0" scrolling="no" width="500px" height="1500px"></iframe>